package com.mall.web.control.jiance;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value="/ps/")
public class PsViewController {
	
	@RequestMapping(value="/detail/{psItemCode}", method = {RequestMethod.GET})
	public ModelAndView getDetail(@PathVariable(value="psItemCode") String psItemCode){
	    
	    ModelAndView modelAndView = new ModelAndView();  
	    modelAndView.addObject("psItemCode", psItemCode);  
	    modelAndView.setViewName("ps/detail");  
	    return modelAndView;
	}

}
